//
//  YZNetworkManager+YZMUserGain.m
//  YZMicroStock
//
//  Created by apple on 17/4/10.
//  Copyright © 2017年 cqjr. All rights reserved.
//

#import "YZClient+YZMUserGain.h"

@implementation YZNetworkManager (YZMUserGain)

-(void)rank_FetchUserRanksuccess:(void (^)(NSURLSessionDataTask *, id))success failure:(void (^)(NSError *))failure{
    
    NSDictionary *params = @{@"device": @"3"};
    [self.mainNetwork cq_noCacheGET:URL_FOR_FETCH_USER_RANK parameters:params success:^(NSURLSessionDataTask *task, id responseObject) {
        if (success) {
            success(task, responseObject);
        }
    } failure:^(NSURLSessionDataTask *task, NSError *error) {
        if (failure) {
            failure(error);
        }
    }];
}

-(void)rank_FetchUnionRanksuccess:(void (^)(NSURLSessionDataTask *, id))success failure:(void (^)(NSError *))failure{
    
    NSDictionary *params = @{@"device": @"3"};
    [self.mainNetwork cq_noCacheGET:URL_FOR_FETCH_UNION_RANK parameters:params success:^(NSURLSessionDataTask *task, id responseObject) {
        if (success) {
            success(task, responseObject);
        }
    } failure:^(NSURLSessionDataTask *task, NSError *error) {
        if (failure) {
            failure(error);
        }
    }];
}
@end
